package com.chuangjiangx.member.stored.dao.model;

import java.math.BigDecimal;
import java.util.Date;

public class InMbrRechargeRule {
    private Long id;

    private String name;

    private BigDecimal amount;

    private Long giftScore;

    private BigDecimal giftAmount;

    private String couponNumber;

    private String giftCoupon;

    private Byte enable;

    private Byte del;

    private Date createTime;

    private Date updateTime;

    private Long merchantId;

    private Byte giftType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Long getGiftScore() {
        return giftScore;
    }

    public void setGiftScore(Long giftScore) {
        this.giftScore = giftScore;
    }

    public BigDecimal getGiftAmount() {
        return giftAmount;
    }

    public void setGiftAmount(BigDecimal giftAmount) {
        this.giftAmount = giftAmount;
    }

    public String getCouponNumber() {
        return couponNumber;
    }

    public void setCouponNumber(String couponNumber) {
        this.couponNumber = couponNumber == null ? null : couponNumber.trim();
    }

    public String getGiftCoupon() {
        return giftCoupon;
    }

    public void setGiftCoupon(String giftCoupon) {
        this.giftCoupon = giftCoupon == null ? null : giftCoupon.trim();
    }

    public Byte getEnable() {
        return enable;
    }

    public void setEnable(Byte enable) {
        this.enable = enable;
    }

    public Byte getDel() {
        return del;
    }

    public void setDel(Byte del) {
        this.del = del;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Byte getGiftType() {
        return giftType;
    }

    public void setGiftType(Byte giftType) {
        this.giftType = giftType;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", amount=").append(amount);
        sb.append(", giftScore=").append(giftScore);
        sb.append(", giftAmount=").append(giftAmount);
        sb.append(", couponNumber=").append(couponNumber);
        sb.append(", giftCoupon=").append(giftCoupon);
        sb.append(", enable=").append(enable);
        sb.append(", del=").append(del);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", merchantId=").append(merchantId);
        sb.append(", giftType=").append(giftType);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InMbrRechargeRule other = (InMbrRechargeRule) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getGiftScore() == null ? other.getGiftScore() == null : this.getGiftScore().equals(other.getGiftScore()))
            && (this.getGiftAmount() == null ? other.getGiftAmount() == null : this.getGiftAmount().equals(other.getGiftAmount()))
            && (this.getCouponNumber() == null ? other.getCouponNumber() == null : this.getCouponNumber().equals(other.getCouponNumber()))
            && (this.getGiftCoupon() == null ? other.getGiftCoupon() == null : this.getGiftCoupon().equals(other.getGiftCoupon()))
            && (this.getEnable() == null ? other.getEnable() == null : this.getEnable().equals(other.getEnable()))
            && (this.getDel() == null ? other.getDel() == null : this.getDel().equals(other.getDel()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getMerchantId() == null ? other.getMerchantId() == null : this.getMerchantId().equals(other.getMerchantId()))
            && (this.getGiftType() == null ? other.getGiftType() == null : this.getGiftType().equals(other.getGiftType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getGiftScore() == null) ? 0 : getGiftScore().hashCode());
        result = prime * result + ((getGiftAmount() == null) ? 0 : getGiftAmount().hashCode());
        result = prime * result + ((getCouponNumber() == null) ? 0 : getCouponNumber().hashCode());
        result = prime * result + ((getGiftCoupon() == null) ? 0 : getGiftCoupon().hashCode());
        result = prime * result + ((getEnable() == null) ? 0 : getEnable().hashCode());
        result = prime * result + ((getDel() == null) ? 0 : getDel().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getMerchantId() == null) ? 0 : getMerchantId().hashCode());
        result = prime * result + ((getGiftType() == null) ? 0 : getGiftType().hashCode());
        return result;
    }
}